import React from 'react';

class Counter extends React.Component {
  render() {
    let { value, onIncreaseClick, onDecreaseClick } = this.props;
    return (
      <div>
        <span>{value}</span>
        <button onClick={onIncreaseClick}>+</button>
        <button onClick={onDecreaseClick}>-</button>
      </div>
    );
  }
}

export default Counter;
